﻿<UserControl x:Class="InkCanvasControl.CInkCanvas2"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:dcs="clr-namespace:InkCanvasControl"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/InkCanvasControl;component/Themes/CInkCanvas2.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>
    <Grid>
        <InkCanvas  Background="#FFEEF589" x:Name="inkCanv">
        </InkCanvas>
        <Border VerticalAlignment="Top" HorizontalAlignment="Left"  Background="#8F3B3737" CornerRadius="5">
            <StackPanel x:Name="fishButtons" Orientation="Horizontal">
                <dcs:BasePropertyCtrl x:Name="SelectBrushThickness"  Sys_PropertyCtrlType="Common" Sys_PopupPlacement="Bottom" ToolTip="笔刷粗细">
                    <dcs:BasePropertyCtrl.Content>
                        <TextBlock Text="¤" FontFamily="Wingdings" FontSize="32" Foreground="White" />
                    </dcs:BasePropertyCtrl.Content>
                    <dcs:BasePropertyCtrl.Sys_PopupContent>
                        <StackPanel Margin="10,5,10,5" >
                            <RadioButton IsChecked="True" GroupName="size" FontSize="1" Click="RadioButton_Click"/>
                            <RadioButton GroupName="size" FontSize="2" Click="RadioButton_Click"/>
                            <RadioButton GroupName="size" FontSize="4" Click="RadioButton_Click"/>
                            <RadioButton GroupName="size" FontSize="6" Click="RadioButton_Click"/>
                            <RadioButton GroupName="size" FontSize="8" Click="RadioButton_Click"/>
                            <RadioButton GroupName="size" FontSize="10" Click="RadioButton_Click"/>
                        </StackPanel>
                    </dcs:BasePropertyCtrl.Sys_PopupContent>
                </dcs:BasePropertyCtrl>
                <dcs:BasePropertyCtrl x:Name="SelectBrush" Sys_PropertyCtrlType="Common" Sys_PopupPlacement="Bottom" ToolTip="颜色选择">
                    <dcs:BasePropertyCtrl.Content>
                        <StackPanel>
                        <TextBlock Text="@" FontFamily="Webdings" FontSize="32" Foreground="White"/>
                            <Border x:Name="CurrentColor"  Height="5" />
                        </StackPanel>
                    </dcs:BasePropertyCtrl.Content>
                    <dcs:BasePropertyCtrl.Sys_PopupContent>
                        <Border BorderBrush="Black" BorderThickness="0,0,1,1"  HorizontalAlignment="Center">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="auto"/>
                                    <ColumnDefinition Width="auto"/>
                                </Grid.ColumnDefinitions>
                                <WrapPanel Orientation="Vertical"  x:Name="left_root" Margin="0,0,0,0" Grid.Row="0" Width="60" Height="240" Grid.Column="0" ItemHeight="20" ItemWidth="20"/>
                                <WrapPanel Grid.Column="2" Grid.Row="1" Margin="0,0,0,0" Width="360" Height="240" x:Name="right_root" ItemHeight="20" ItemWidth="20"/>
                            </Grid>
                        </Border>
                    </dcs:BasePropertyCtrl.Sys_PopupContent>
                </dcs:BasePropertyCtrl>
            </StackPanel>
        </Border>

    </Grid>
</UserControl>
